# 写法一
a = int(input("Please input the an integer : "))
if(a%400==0):
    print("leap year")
elif(a%100==0):
    print("common year")
elif(a%4==0):
    print("leap year")
else:
    print("common year")

# 写法二
b = int(input("Please input the an integer : "))
if(( b%400 == 0 ) or ( b % 100 != 0 and b % 4 == 0)):
    print("leap year")
else:
    print("common year")
    